package com.wash.shoes.controller.mobile;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.R;
import com.wash.shoes.entity.BannerPo;
import com.wash.shoes.service.BannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ljg
 * @since 2024-12-12
 */
@Api(tags = {"移动端-系统的banner"})
@RestController
@RequestMapping("/mobile-api/banner")
public class BannerMController {

    @Autowired
    BannerService bannerService;

    @ApiOperation("获取列表")
    @PostMapping("/list")
    public R<Page<BannerPo>> pageList(@RequestBody BannerPo bannerPo) {
        Page<BannerPo> page = bannerService.pageList(bannerPo);
        return R.ok(page);
    }


}

